import request from '@/utils/request'

// 查询调拨出库单列表
export function listModulationInBill(query) {
  return request({
    url: '/bill/modulationInBill/list',
    method: 'get',
    params: query
  })
}

export function selectModulationInBillForPrint(query) {
  return request({
    url: '/bill/modulationInBill/selectModulationInBillForPrint',
    method: 'get',
    params: query
  })
}

// 查询调拨出库单详细
export function getModulationInBill(id) {
  return request({
    url: '/bill/modulationInBill/' + id,
    method: 'get'
  })
}

// 新增入库调整单
export function addModulationInBill(data) {
  return request({
    url: '/bill/modulationInBill',
    method: 'post',
    data: data
  })
}

// 修改入库调整单
export function updateModulationInBill(data) {
  return request({
    url: '/bill/modulationInBill',
    method: 'put',
    data: data
  })
}

// 删除入库调整单
export function delModulationInBill(id) {
  return request({
    url: '/bill/modulationInBill/' + id,
    method: 'delete'
  })
}

// 查询入库调整单明细列表
export function listModulationInBillDetail(query) {
  return request({
    url: '/bill/modulationInBillDetail/list',
    method: 'get',
    params: query
  })
}

// 查询入库调整单明细详细
export function getModulationInBillDetail(id) {
  return request({
    url: '/bill/modulationInBillDetail/' + id,
    method: 'get'
  })
}

// 新增入库调整单明细
export function addModulationInBillDetail(data) {
  return request({
    url: '/bill/modulationInBillDetail',
    method: 'post',
    data: data
  })
}

// 修改入库单调整明细
export function updateModulationInBillDetail(data) {
  return request({
    url: '/bill/modulationInBillDetail',
    method: 'put',
    data: data
  })
}

// 删除入库单调整明细
export function delModulationInBillDetail(id) {
  return request({
    url: '/bill/modulationInBillDetail/' + id,
    method: 'delete'
  })
}
